package com.zhou.base.components.bs.common.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField(fill = FieldFill.INSERT)
    private String creatorId;

    @TableField(fill = FieldFill.INSERT)
    private String creatorName;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifierId;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifierName;

    @ApiModelProperty("更新时间")
    private LocalDateTime modifiedTime;

    @TableLogic
    @ApiModelProperty("删除标识;删除标识;删除标识;0表示未删除，1表示删除")
    private Boolean delFlag;

}
